#ifndef MESH3DCACHE_H
#define MESH3DCACHE_H

#include <QObject>
#include <QMap>
#include <QFile>
#include "mesh.h"

class Mesh3DCache : public QObject
{
    Q_OBJECT

private:
    QMap <QString, Mesh*> MeshCache;

private:
    explicit Mesh3DCache(QObject *parent = 0);
    virtual ~Mesh3DCache();

    static Mesh3DCache *self;
    Q_DISABLE_COPY(Mesh3DCache)

public:
    static Mesh3DCache *instance();

    Mesh* loadMesh(QString filename);

signals:

public slots:

};

#endif // MESH3DCACHE_H
